//
//  JQFlowayout.h
//  SheShiDu
//
//  Created by 单剑秋 on 16/6/16.
//  Copyright © 2016年 单剑秋. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JQFlowayout;

@protocol QLayoutItemHeightDelegate <NSObject>


- (CGFloat)layout:(JQFlowayout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath width:(CGFloat)width;

@end

@interface JQFlowayout : UICollectionViewLayout

@property (nonatomic, assign)NSInteger columCounts;/**< 列数 */
@property (nonatomic, assign)NSInteger columSpace;/**< 列间距 */
@property (nonatomic, assign)NSInteger rowSpace;/**< 行间距 */
@property (nonatomic, assign)UIEdgeInsets edgeInsets;/**< 边距 */

@property (nonatomic, assign) id<QLayoutItemHeightDelegate>delegate;

@end
